import { HttpException, HttpStatus } from '@nestjs/common';

export class BizFailedException extends HttpException {
  constructor(bizFailedCode: number, message?: string) {
    super(message ? {
      code: bizFailedCode.toString(),
      message,
    } : bizFailedCode.toString(), HttpStatus.OK);
  }
}
